from matplotlib import pyplot as plt

#竖着的条形图

xData = ["movie1","movie2","movie3","movie4","movie5","movie6","movie7"]
yData = [56.01,26.94,17.53,16.94,15.45,12.96,11.8]

plt.figure(figsize=(80,8),dpi=80)

plt.yticks(range(len(xData)),xData)

plt.barh(range(len(xData)),yData,height=0.3,color="r")

plt.show()
